<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2016-04-11 20:52:04, compiled from D:\phpStudy\WWW\Frame/app/web/template/admin/menu.htm */ ?>
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
             <li><a href="index.php?m=admin&c=index&a=index"><span class="am-icon-home"></span> 首页</a></li>
        <?php foreach  ($menu as $key => $val) { ?>
            <?php if  (isset($val['childs'])) { ?>  
              <li class="admin-parent">
                <a class="am-cf" data-am-collapse="{target: '#collapse-nav-<?php echo $key;?>'}"><span class="am-icon-<?php echo $val['men_extend'];?>"></span> <?php echo $val['men_name'];?><span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-<?php echo $key;?>">    
                  <?php foreach  ($val['childs'] as $k => $v) { ?>  
                      <li><a href="index.php?m=<?php echo $v['men_m'];?>&c=<?php echo $v['men_c'];?>&a=<?php echo $v['men_a'];?>"><span class="am-icon-<?php echo $v['men_extend'];?>"></span> <?php echo $v['men_name'];?></a></li>
                  <?php } ?>  
                </ul>
              </li>
            <?php } else { ?>  
             <li><a href="index.php?m=<?php echo $val['men_m'];?>&c=<?php echo $val['men_c'];?>&a=<?php echo $val['men_a'];?>"><span class="am-icon-<?php echo $val['men_extend'];?>"></span> <?php echo $val['men_name'];?></a></li>
            <?php } ?>
        <?php } ?>
             <li><a href="index.php?m=admin&c=index&a=logout"><span class="am-icon-sign-out"></span> 注销</a></li>

      </ul>
      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-bookmark"></span> Nighost</p>
          <p>舍身取义。—— Nighost</p>
        </div>
      </div>
    </div>
  </div>
  <!-- sidebar end -->
